#带linux基础命令，缺少的可以使用yum安装
FROM openjdk:8-jdk-oraclelinux7

ENV PARAMS=""

RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone

COPY ./target/xxl-job-admin-1.0.0.jar /xm/

WORKDIR /xm

ENTRYPOINT ["/bin/sh","-c","java -Dfile.encoding=utf8 -Djava.security.egd=file:/dev/./urandom -jar /xm/xxl-job-admin-1.0.0.jar ${PARAMS}"]
